#include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<fstream>
using namespace std;

#define M 1000000
#define N 2
int main()
{
    srand(time(0));
    int a[M][N]={0};
    int i,j;
    srand(time(0));
    ofstream out("file.txt",ios::app);  //保存到e盘的文件file.txt中
    for(i=0;i<M;i++)
    {
        for(j=0;j<N;j++)
        {
            a[i][j]=rand()%1000;
            out<<a[i][j]<<" ";
        }
        out<<endl;
    }




    return 0;
}